package com.hydra.modulecenter;

/**
 * Created by hasee on 2017/7/28.
 *
 */
public enum  ModuleConfig {

    //TODO 暂时使用手动设置初始化顺序，这里的初始化顺序根据不同情况来更改，有依赖的情况
    //后面有需要做去中心化时再搞
    config(true, "com.hydra.interfaces.config.IConfig", "com.hydra.config.ConfigModule"),
    datacenter(true, "com.hydra.interfaces.datacenter.IDataCenter", "com.hydra.datacenter.DataCenterModule"),
    net(true, "com.hydra.interfaces.net.INet", "com.hydra.net.NetModule"),
    login(true, "com.hydra.interfaces.login.ILogin", "com.hydra.login.LoginModule"),
    user(true, "com.hydra.interfaces.user.IUser", "com.hydra.user.UserModule"),
    share(true, "com.hydra.interfaces.share.IShare", "com.hydra.share.ShareModule"), ;

    public final boolean preLoad;
    public final String interfaceClsName;
    public final String moduleClsName;

    ModuleConfig(boolean preLoad, String interfaceClsName, String moduleClsName) {
        this.preLoad = preLoad;
        this.interfaceClsName = interfaceClsName;
        this.moduleClsName = moduleClsName;
    }
}
